package RMI.adminTOrtdg.impl;

import host.impl.Host;

import java.rmi.RemoteException;

import RMI.adminTOrtdg.IRemoteHostManager;





public class RMIComServerObject implements IRemoteHostManager {

	private Host host;
	
	public RMIComServerObject(Host host){
		this.host = host;
	}
	
	public Host getHost() throws RemoteException {
		return host;
	}

	public String getIpAddress() throws RemoteException {
		return host.getIpAddress();
	}

	public int getPortNumber() throws RemoteException {
		return host.getRegistryPortNumber();
	}
}